﻿<%@ Page Title="" Language="C#" MasterPageFile="~/View/Main.Master" AutoEventWireup="true" CodeBehind="UpdateCatalogue.aspx.cs" Inherits="ArtClub.UpdateCatalogue" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<asp:Content ID="MainMenu" ContentPlaceHolderID="MainMenu" runat="server">
			<li><a href="BrowseCatalogue.aspx">Art Pieces</a>
    </li>
    <li><a href="BiddingInfoPage.aspx">Pieces for Bidding</a>
    </li>
    <li><a href="#contact">Subscription</a>
    </li>
</asp:Content>

<asp:Content ID="PageName" ContentPlaceHolderID="PageName" runat="server">
				Update Information
</asp:Content>

<asp:Content ID="Submenu" ContentPlaceHolderID="Submenu" runat="server">
				<a href="#" class="list-group-item">Go Back to Browsing</a>
    <a href="#" class="list-group-item">Add an Art</a>
</asp:Content>

<asp:Content ID="MainContent" ContentPlaceHolderID="MainContent" runat="server">

    <form id="form1" runat="server" enctype="multipart/form-data">

        <!-- Picture -->
        <div class="row">
            <div class="col-md-12">
               <asp:Image ID="imgProduct" runat="server" style="display: block; margin: 0 auto;" />
            </div>
        </div>
        <br />
        <br />

        <!-- Text and fields under picture -->
        <div class="row">
            <!-- Current Information -->
            <div class="col-md-6">
                <h4>Current Information</h4>

                <!-- Name -->
                <div class="col-md-4">
                   Name:
                </div>
                <div class="col-md-8">
                    <asp:Label ID="LabelArtName" runat="server" Text=""></asp:Label>
                    &nbsp;
                </div>
                <br />
                <br />

                <!-- Artist -->
                <div class="col-md-4">
																				Artist:
                </div>
                <div class="col-md-8">
                    <asp:Label ID="LabelArtistName" runat="server" Text=""></asp:Label>
                </div>
                <br />
                <br />

                <!-- Type(Genre) -->
                <div class="col-md-4">
                    Genre:
                </div>
                <div class="col-md-8">
                    <asp:Label ID="LabelArtType" runat="server" Text=""></asp:Label>
                </div>
                <br />
                <br />

                <!-- Original Price -->
                <div class="col-md-4">
                   Original Price:
                </div>
                <div class="col-md-8">
                    <asp:Label ID="LabelOriginalPrice" runat="server" Text=""></asp:Label>
                </div>
                <br />
                <br />

                <!-- Created By -->
                <div class="col-md-4">
																				Created By:
                </div>
                <div class="col-md-8">
                    <asp:Label ID="LabelCreatedBy" runat="server" Text=""></asp:Label>
                </div>
                <br />
                <br />

                <!-- Description -->
                <div class="col-md-4">
                   Description:
                </div>
                <div class="col-md-8">
                    <asp:Label ID="LabelDescription" runat="server" Text=""></asp:Label>
                </div>
                <br />
                <br />

																<!-- Date -->
                <div class="col-md-4">
                    Date:
                </div>
                <div class="col-md-8">
                    <asp:Label ID="LabelDate" runat="server" Text=""></asp:Label>
                </div>
                <br />
                <br />

                <!-- ID -->
                <div class="col-md-8">
                    &nbsp;<asp:Label ID="LabelArtID" runat="server" Visible="False"></asp:Label>
                </div>
                <br />
                <br />

            </div>

            <!-- Update Fields -->
            <div class="col-md-6">
                <h4>Update Fields</h4>

                <!-- Name -->
                <div class="col-md-4">
                    Name:
                </div>
                <div class="col-md-8">
                    <asp:TextBox ID="ArtNameInput" class="form-control" runat="server"></asp:TextBox>
                </div>
                <br />
                <br />

                <!-- Artist -->
                <div class="col-md-4">
                    Artist:
                </div>
                <div class="col-md-8">
                    <asp:TextBox ID="ArtistNameInput" class="form-control" runat="server"></asp:TextBox>
                </div>
                <br />
                <br />

                <!-- Genre -->
                <div class="col-md-4">
                    Genre:
                </div>
                <div class="col-md-8">
                    <asp:TextBox ID="TypeOfArtInput" class="form-control" runat="server"></asp:TextBox>
                </div>
                <br />
                <br />

                <!-- Original Price -->
                <div class="col-md-4">
                    Original Price:
                </div>
                <div class="col-md-8">
                    <asp:TextBox ID="OriginalPriceValueInput" class="form-control" runat="server"></asp:TextBox>
                </div>
                <br />
                <br />

                <!-- Created By -->
                <div class="col-md-4">
                    Created By:
                </div>
                <div class="col-md-8">
                    <asp:TextBox ID="CreatedByInput" class="form-control" runat="server"></asp:TextBox>
                </div>
                <br />
                <br />

                <!-- Date 
                <div class="col-md-4">
                    Date:
                </div>
                <div class="col-md-8">
                    <asp:TextBox ID="DateInput" class="form-control" runat="server"></asp:TextBox>
                </div>
                <br />
                <br /> -->

                <!-- Description -->
                <div class="col-md-4">
                    Description:
                </div>
                <div class="col-md-8">
                    <asp:TextBox ID="DescriptionInput" TextMode="MultiLine" row="3" class="form-control" runat="server"></asp:TextBox>
                </div>
                <br />
                <br />

                <!-- Change Image -->
                <div class="col-md-4">
                    Change Image?
                </div>
                <div class="col-md-8">

																		<input type="file" id="myFile1" name="myFile" />

              <%--  <asp:FileUpload type="file" id="File2" name="myFile" runat ="server"/>--%>


                </div>

                <br />
                <br />
                <br />

                <!-- Submit -->
                <div class="col-md-7">
                </div>
                <div class="col-md-5">
                    &nbsp;<asp:Button ID="buttonSubmit" class="btn btn-default" runat="server" Text="Submit" OnClick="buttonSubmit_clicked" />
                </div>
            </div>
        </div>


    </form>
</asp:Content>
